#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H
#include <QGraphicsBlurEffect>
#include <QGraphicsView>
#include <QGraphicsEllipseItem>
#include <QGraphicsScene>
#include <QGraphicsDropShadowEffect>
#include <QDebug>
class GraphicsView : public QGraphicsView {
    Q_OBJECT
public:
    explicit GraphicsView(QWidget *parent = nullptr);

    //返回对 circles 的引用
    QList<QGraphicsEllipseItem*>& getCircles() {
        return circles;
    }

    ~GraphicsView();
    void updateCircleSize(int index, double size);

    void circle_position(qreal x, qreal y, qreal size);

private:
    QList<QGraphicsEllipseItem*> circles;
    QGraphicsScene *scene;


};



#endif // GRAPHICSVIEW_H
